package com.funcas.pcloud.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author funcas
 * @version 1.0
 * @date 2018年10月12日
 */
@SpringBootApplication
@EnableDiscoveryClient
public class RouterApp {

    public static void main(String[] args) {
        SpringApplication.run(RouterApp.class, args);
    }

//    @Bean
//    public RouteLocator customRouteLocator(RouteLocatorBuilder builder) {
//        return builder.routes()
//                .route(t -> t.path("/user/*")
//                        .and()
//                        .uri("http://localhost:9000"))
//                .build();
//    }
}
